package com.snpic.appaw.module.insure.api.cxProvince;

import com.fhs.core.trans.anno.AutoTrans;
import com.snpic.appaw.module.insure.api.cxProvince.dto.AppCxProvincePageReqDTO;
import com.snpic.appaw.module.insure.api.cxProvince.dto.AppCxProvinceRespDTO;
import com.snpic.appaw.module.insure.enums.ApiConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.validation.*;

import com.snpic.appaw.framework.common.pojo.PageResult;
import com.snpic.appaw.framework.common.pojo.CommonResult;
import static com.snpic.appaw.module.insure.api.cxProvince.CxProvinceApi.PREFIX;

@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - cxProvince API")
@AutoTrans(namespace = PREFIX, fields = {"nickname"})
public interface CxProvinceApi {
	String PREFIX = ApiConstants.PREFIX + "/cxProvince";

    @PostMapping("/page")
    @Operation(summary = "获得车险出单配置-市与车险省市映射分页")
    public CommonResult<PageResult<AppCxProvinceRespDTO>> getCxProvincePage(@Valid AppCxProvincePageReqDTO pageReqVO);


}